package com.czz.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czz.portal.entity.Teacher;
import com.czz.portal.mapper.TeacherMapper;
import com.czz.portal.service.TeacherService;
import com.czz.portal.vo.TeacherVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: TeacherServiceImpl
 * @Author Czz
 * @Date 2020/2/6
 * @Time 17:41
 **/
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements TeacherService {

    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public List<TeacherVo> getTeacherList() {
       return teacherMapper.getTeacherList();
    }

    @Override
    public TeacherVo getTeacherByCourseId(String CourseId) {
        return teacherMapper.getTeacherByCourseId(CourseId);
    }
}
